<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .haha {
            background-color: rebeccapurple;
        }

        .hehe {
            background-color: yellow;
        }
    </style>
</head>

<body>
    <div id="app">
        <a v-bind:href="url" v-bind:class="box2">进入百度</a>
        <!-- 简写 -->
        <!-- <img :src="'http://39.104.16.173:8081'+imgs[0].imgSrc" alt="" srcset=""> -->

        <div v-for="(item,index) in imgs">
           <span>{{index}}</span>
            <img :src="'http://39.104.16.173:8081'+item.imgSrc" alt="" srcset="">
        </div>
    </div>
</body>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script>
    let vm = new Vue({
        el: "#app",
        data: {
            url: "https://www.baidu.com/",
            box: "haha",
            box2: "hehe",
            imgs: [
                {
                    "id": 1,
                    "imgSrc": "/img/swiper/1.png",
                    "alt": ""
                },
                {
                    "id": 2,
                    "imgSrc": "/img/swiper/2.png",
                    "alt": ""
                },
                {
                    "id": 3,
                    "imgSrc": "/img/swiper/3.png",
                    "alt": ""
                }
            ]
        }

    })
</script>

</html>